import request from '@/utils/request'
import { projectApiUrlList, projectApiUrl, faceApiUrl } from '../config'

/**
 * 查询形象进度
 * @param data
 */
export function getProjectImageProgress(id) {
    return request({
        url: faceApiUrl + '/projectProductionShiftRecord/getProjectImageProgress',
        method: 'get',
        params: { id }
    })
}

/**
 * 获取形象进度下拉列表
 * @param data
 */
export function planLabel() {
    return request({
        url: projectApiUrl + '/plan-label',
        method: 'get',
        params: { type: 43, pageNo: 1, pageSize: 1000 }
    })
}

/**
 * 添加生产带班记录
 * @param data
 */
export function insertSelective(data) {
    return request({
        url: faceApiUrl + '/projectProductionShiftRecord/insertSelective',
        method: 'post',
        data
    })
}

/**
 * 分页查询
 * @param data
 */
export function getPageProjectProductionShiftRecord(data) {
    return request({
        url: faceApiUrl + '/projectProductionShiftRecord/getPageProjectProductionShiftRecord',
        method: 'post',
        data
    })
}

/**
 * 获取生产带班记录信息
 * @param data
 */
export function getProjectProductionShiftRecordById(id) {
    return request({
        url: faceApiUrl + '/projectProductionShiftRecord/getProjectProductionShiftRecordById?id=' + id,
        method: 'get',
        params: { id }
    })
}

/**
 * 删除生产带班记录
 * @param data
 */
export function deleteByPrimaryKey(data) {
    return request({
        url: faceApiUrl + '/projectProductionShiftRecord/deleteByPrimaryKey?id=' + data.id,
        method: 'post',
        data
    })
}

/**
 * 修改生产带班记录
 * @param data
 */
export function updateByPrimaryKeySelective(data) {
    return request({
        url: faceApiUrl + '/projectProductionShiftRecord/updateByPrimaryKeySelective',
        method: 'post',
        data
    })
}
